package com.guigu.www.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.www.pojo.GatherDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GatherDetailsMapper extends BaseMapper<GatherDetails> {
   public  int insertgatherDetail(GatherDetails gatherDetail);
   //根据父id查询审核
   public List<GatherDetails> queryBygatgerDetails(int id);
   //根据父id查询
   public List<GatherDetails> queryBygatgerDetailsson(int id);

   //根据父id查询s
   public List<GatherDetails> queryBygatgerDetailssons(int id);
   //根据入库单编号查询当前入库要调度的产品
   public GatherDetails queryGatherDetailsByproductId(@Param("productId") String productId,@Param("ids") int ids);
   //修改明细表为K002-2: 已调度
   public int updateGatherDetailsByproductId(@Param("gatheredAmount") String gatheredAmount,@Param("productId") String productId);
   //登记修改明细表状态
   public  int updateWarehosingGaherDetils(@Param("gatherDetails") GatherDetails gatherDetails,@Param("id") int id);
   //查询当前入库的产品明细
   public GatherDetails querygatherDetailsBycpidByid(@Param("id") int id,@Param("productId") String productId);
   //修改明细表数据
   public int updatewarehousingexaminequeryGatherByGathers(@Param("gatherDetail") GatherDetails gatherDetail, @Param("id") Integer id);

   public  List<GatherDetails> queryBydynamicinventiryall(String productId);
}
